package com.ndp.fb.rdb.model;

import com.ndp.fb.rdb.annotation.Id;
import com.ndp.fb.rdb.annotation.NoSave;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * Created by Mikey.zhaopeng on 2015/3/18 15:27.
 * Email mikey.zhao@ndpmedia.com
 * +-------------------------+--------------+------+-----+---------------------+-----------------------------+
 * | Field                   | Type         | Null | Key | Default             | Extra                       |
 * +-------------------------+--------------+------+-----+---------------------+-----------------------------+
 * | id                      | bigint(20)   | NO   | PRI | NULL                | auto_increment              |
 * | fb_connection_object_id | bigint(20)   | YES  |     | NULL                |                             |
 * | connection_object_name  | varchar(255) | YES  |     | NULL                |                             |
 * | platform                | varchar(255) | YES  |     | NULL                |                             |
 * | user_id                 | varchar(255) | YES  |     | NULL                |                             |
 * | vpi                     | int(20)      | YES  |     | NULL                |                             |
 * | remark                  | varchar(255) | YES  |     | NULL                |                             |
 * | update_time             | timestamp    | YES  |     | NULL                | on update CURRENT_TIMESTAMP |
 * | create_time             | timestamp    | NO   |     | 0000-00-00 00:00:00 |                             |
 * +-------------------------+--------------+------+-----+---------------------+-----------------------------+
 */
@Setter
@Getter
@NoArgsConstructor
public class VpiInfo implements Serializable {
    private static final long serialVersionUID = -9118729732272246436L;
	/**
	 * as column id
	 */
    @Id
    private Long id;
	/**
	 * as column fb_connection_object_id
	 */
    private Long fbConnectionObjectId;
	/**
	 * as column connection_object_name
	 */
    private String connectionObjectName;
	/**
	 * as column platform
	 */
    private String platform;
	/**
	 * as column user_id
	 */
    private String userId;
	/**
	 * as column vpi
	 */
    private Integer vpi;
	/**
	 * as column remark
	 */
    private String remark;
	/**
	 * as column update_time
	 */
    private Date updateTime;
	/**
	 * as column create_time
	 */
    private Date createTime;
    @NoSave  // find 用的是rowMapper,insert 的时候可以忽略。
    private List<VpiCountryInfo> vpiCountryInfos;
}
